package top.dbpanda.cmsjpa.service;

import top.dbpanda.cmsjpa.entity.UserEntity;
import top.dbpanda.cmsjpa.model.dto.AddUserDTO;

public interface UserService {
    /**
     * 添加用户对象
     *
     * @param addUser 添加用户对象
     * @return UserEntity
     */
    UserEntity add(AddUserDTO addUser);

    /**
     * 测试 ReentrantLock
     *
     * @param addUser 添加用户对象
     * @return UserEntity
     */
    UserEntity testLock(AddUserDTO addUser);

    /**
     * 测试 Synchronized
     *
     * @param addUser 添加用户对象
     * @return UserEntity
     */
    UserEntity testSynchronized(AddUserDTO addUser);
}
